package com.design.strategy;

/**
 * @author ytj
 * @date 2024/11/28 15:23
 */
public class Strategy {
    private IStrategy strategy;

    public Strategy(IStrategy strategy){
        this.strategy=strategy;
    }

    public void doMethod(){
        strategy.doStrategy();
    }
}
